<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@page import="java.sql.SQLException"%>
<%@page import="startup.model.user.Professor"%>
<%
	try
	{
		Professor professor = ( Professor )session.getAttribute( "currentSessionUser" );

		professor.showRoles( professor.getId() );
		professor.nameOfAdmin();
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="windows-1252">
		<title>Professor F.A.Q.</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!-- Le styles -->
		<link href="styles/bootstrap.css" rel="stylesheet">
		<style type="text/css">
			body {
				padding-top: 60px;
				padding-bottom: 40px;
			}
			.sidebar-nav {
				padding: 9px 0;
			}
		</style>
	</head>
	<body>
        <!--Barra Superiore-->
        <div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container-fluid">
					<a class="brand" href="#">Professor F.A.Q.</a>
					<div class="nav pull-right">
						<ul class="nav">
							<li>
								<form action="Logout" method="post">
									<button class="btn btn-primary btn-small">Sign out</button>
								</form>
							</li>
						</ul>
					</div>
				</div>
			</div>
        </div>
        <!--CONTENUTO LISTE -->
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span3" style="position:fixed;">
                    <div class="well sidebar-nav">
                        <ul class="nav nav-list">
                            <li><a href="javascript:history.back()"><i class="icon-arrow-left"></i> Back</a></li>
                            <li class="nav-header">Location</li>
                            <li><a href="professorHome.jsp"><i class="icon-home"></i> Home</a></li>
                            <li class="nav-header">Roles</li>
                            <%
								if( professor.isCoordinator() == true )
								{
                            %>
                            <li><a href="coordinatorShowTrips.jsp"><i class="icon-user"></i> Coordinator</a></li>
                            <%								}
								if( professor.isManager() == true )
								{
                            %>
                            <li><a href="managerShowTrips.jsp"><i class="icon-user"></i> Manager</a></li>
                            <%								}
								if( professor.isSupervisor() == true )
								{
                            %>
                            <li><a href="supervisorShowTrips.jsp"><i class="icon-user"></i> Supervisor</a></li>
                            <%								}
                            %>
                            <li class="nav-header">Function</li>
                            <li class="active"><a href="#"><i class="icon-white icon-info-sign"></i> F.A.Q.</a></li>
                        </ul>
                    </div><!--/.well -->
                </div><!--/span-->
                <div class="span9" style="margin-left: 26%;">
                    <div class="row-fluid">
                        <div class="accordion" id="accordion2">
                            <div class="accordion-group">
                                <div class="accordion-heading">
									<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
										Basically Information
									</a>
                                </div>
                                <div id="collapseOne" class="accordion-body collapse in">
                                    <div class="accordion-inner">
                                        <br />
                                        <div class="alert alert-info">                                     
                                            <p>In the NAV-bar here <strong>on the left</strong>, you will be able to <strong>select the role</strong> for being able to visualize the missions to approve of for every role from indicated you.</p>
                                            <p>The part of Location of the NAV-bar on the left extension where it finds to you in the site. The leases in blue are the running pages. it can be only returned behind in the chronology, never ahead (only with the push-buttons of the browser)</p>                                        
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="accordion-group">
                                <div class="accordion-heading">
									<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
										Roles
									</a>
                                </div>
                                <div id="collapseTwo" class="accordion-body collapse">
                                    <div class="accordion-inner">
                                        <br />
                                        <div class="alert alert-block alert-info">
                                            <p>If you want to see the information about the mission, you may click on the <strong>thumbnail</strong>, or <strong>Accept</strong>/<strong>Refuse</strong> the trip.</p>
                                            <hr>
                                            <p>In the NAV-bar on the left you will be able to choose the role that you want to assume and for every role they will be visualized (if possible) of the missions to accept.</p>
                                            <p>Obviously the missions for the coordinator and the manager could visualize them after the approval of the supervisor of the student whom of it has made demanded.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="accordion-group">
                                <div class="accordion-heading">
									<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
										Supervisor
									</a>
                                </div>
                                <div id="collapseFour" class="accordion-body collapse">
                                    <div class="accordion-inner">
                                        <br />
                                        <div class="alert alert-block alert-info">
                                            <p>The supervisor can (if the mission demands according to manager) to insert in the modal of acceptance the id of according to manager.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>                            
                        </div>
                    </div>
                </div>
            </div>
        </div><!--/.fluid-container-->
        <div class="navbarCC navbar-fixed-bottom">
            <div class="navbarCC-inner">
                <div class="container-fluid">				
                    <a class="brand" href="#">&copy; 2012 Startup</a>					
                </div>
            </div>
        </div>
		<!-- Il javascript -->
		<script src="js/jquery.js"></script>
		<script src="js/bootstrap.js"></script>
	</body>
</html>
<%
	}
	catch( SQLException sqlException )
	{
		sqlException = new SQLException( "The database is currently busy.<br />" +
										 "If the problem persists, please report it to the administration." );
		request.setAttribute( "exception", sqlException );
		request.getRequestDispatcher( "errorPage.jsp" ).forward( request, response );
	}
	catch( RuntimeException runtimeException )
	{
		if( runtimeException.getClass().equals( NullPointerException.class ) )
		{
			runtimeException = new NullPointerException( "The session has timed out:<br />" + "" +
														 "try reloading page.<br />" +
														 "If the problem persists, please report it to the administration." );
		}
		request.setAttribute( "exception", runtimeException );
		request.getRequestDispatcher( "errorPage.jsp" ).forward( request, response );
	}
%>